<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="modal-dialog">
	<div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">X</button>
			<h3 id="myModalLabel">${empty entity?'新增':'修改' }用户明细信息</h3>
		</div>
		<div class="modal-body">
			<form class="form-horizontal" method="post" id="sysUserForm"
				name="icePersonForm"
				action="iceperson/save${empty entity?'Insert':'Update' }.htm"
				role="form">
				<div class="form-group">
					<label class="col-sm-2 control-label">信用卡名称<font
						color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="hidden" value="${entity.icePersonId }"
							name="icePersonId" /> <input type="text" class="form-control"
							id="icePerson_trueName" name="trueName" value="${entity.trueName }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">手机号码<font
						color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<input type="text" class="form-control" name="phoneNum"
							id="icePerson_phoneNum" value="${entity.phoneNum }">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">状态<font color="red">&nbsp;*</font></label>
					<div class="col-sm-10">
						<label class="checkbox-inline"> <input type="radio"
							name="state" value="1" ${entity.state=='1'?'checked':'' }>
							正常
						</label> <label class="checkbox-inline"> <input type="radio"
							name="state" value="2" ${entity.state=='0'?'checked':'' }>
							锁定 
						</label>
						 <label class="checkbox-inline"> <input type="radio"
							name="state" value="3" ${entity.state=='0'?'checked':'' }>
							冻结
						</label>
						 <label class="checkbox-inline"> <input type="radio"
							name="state" value="4" ${entity.state=='0'?'checked':'' }>
							审核中
						</label>
						 <label class="checkbox-inline"> <input type="radio"
							name="state" value="5" ${entity.state=='0'?'checked':'' }>
							通过
						</label>
						 <label class="checkbox-inline"> <input type="radio"
							name="state" value="6" ${entity.state=='0'?'checked':'' }>
							审核不通过
						</label>
						 <label class="checkbox-inline"> <input type="radio"
							name="state" value="7" ${entity.state=='0'?'checked':'' }>
							 删除
						</label>
					</div>
				</div>
				<span id="tip"
					style="color: red; font-size: 14px; margin-left: 20px;"></span>
			</form>
		</div>
		<div class="modal-footer">
			<button class="btn btn-default" data-dismiss="modal"
				aria-hidden="true">取消</button>
			<button class="btn btn-primary" data-dismiss="modal">保存</button>
		</div>
	</div>
</div>
<script type="text/javascript"
	src="resources/js/My97DatePicker/WdatePicker.js" charset="utf-8"></script>
<script type="text/javascript">
	function check_fun() {
		$("#tip").html("");
		var b = true;
		var state = $('input[name="state"]:checked').val();
		var phoneNum = $("#icePerson_phoneNum").val();
		var name = $("#icePerson_name").val();
		
	
		if (state == undefined) {
			$("#tip").html("请选择状态");
			b = false;
		}
		if (phoneNum == null || phoneNum.trim() == '') {
			$("#tip").html("请输入手机号码");
			b = false;
		}
		if (trueName == null || trueName.trim() == '') {
			$("#tip").html("请输入名称");
			b = false;
		}
		return b;
	}

	


</script>